package com.housediyadmin.events.salesEvents
{
	import com.housediyadmin.vo.Sales;
	
	import flash.events.Event;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/16
	 */	
	public class EditSalesEvent extends Event
	{
		public static const EDIT_SALES:String = "editSales";
		
		public var sales:Sales;
		public var goodsIds:Array;
		
		/**
		 * 修改一条Sales信息， 
		 * @param type 必选参数，EDIT_SALES
		 * @param sales：Sales 必选参数，传入一个Sales对象，不能忽视它的ID
		 * @param goodsIds：Array 可选参数，可为空
		 * 
		 */	
		public function EditSalesEvent(type:String, sales:Sales, goodsIds:Array = null)
		{
			super(type);
			this.sales = sales;
			this.goodsIds = goodsIds;
		}
		
		override public function clone():Event
		{
			return new EditSalesEvent(type, sales, goodsIds);
		}
	}
}